const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const isProduction = true;

module.exports = {
  mode: "production",
  // 不打包
  externals: {
    lodash: "_",
    dayjs: "dayjs",
  },
  plugins: [
    new CleanWebpackPlugin(),
    new MiniCssExtractPlugin({
      filename: 'css/[name].[contenthash:6].css'
    })
   ],
};
